package org.example.aicloud.service.impl;

import jakarta.annotation.Resource;
import org.example.aicloud.entity.Comment;
import org.example.aicloud.entity.vo.CommentVO;
import org.example.aicloud.mapper.CommentMapper;
import org.example.aicloud.service.ICommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-09-05
 */
@Transactional
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements ICommentService {

    @Resource
    private CommentMapper commentMapper;
    @Override
    public List<CommentVO> getCommentList(Long did) {
        return commentMapper.getCommentList(did);
    }
}
